/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ces31.ChineseDicesServer.RN;

import java.util.Random;

/**
 *
 * @author Imada
 */
public class RN_Dado {
    
    public RN_Dado(){
        sortearDado();
    }

    /**
     * Sort the dices.
     *
     */
    public void sortearDado(){
       Random generator = new Random();
       setValor(generator.nextInt(6)+1);
    }

    public int getValor() {
        return valor;
    }

    private void setValor(int valor) {
        this.valor = valor;
    }

    private int valor;
}
